<div id="main">

  <div id="register">
  <div><?=$cmd?></div>
  <table border="1" width="98%" align="center">
  	<tr>
    	<th>Account Name</th>
        <th>Account Type</th>
        <th>Status</th>
        <th>Edit</th>
        <th>Delete</th>
    </tr>
	<?php
	foreach($heads as $head):
	$urlEdit="?page=accountHeads&id=".$head['accountID'];
	$urlDel="?page=listHeads&sub=doDelete&id=".$head['accountID'];
	?>
  	<tr>
    	<td align="left"><?=$head['accountName']?></td>
        <td align="left"><?=$head['accountType']?></td>
        <td align="left"><?=$head['accountStatus']?></td>
        <td align="center"><a href="<?=$urlEdit?>"><img src="iconset/pencil_16.png" /></a></td>
        <td align="center"><a href="<?=$urlDel?>"><img src="iconset/delete_16.png" /></a></td>
    </tr>
	<?php endforeach; ?>
  </table>
  
  </div>

</div>